const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  // avatar: state => state.user.avatar, 这个图吗？就算了吧
  name: state => state.user.name,
  id: state => state.user.id,
  role: state=>state.user.level,
  phone: state=>state.user.phone,
  curSession:state=>state.session.curSession
}
export default getters
